<?php
if (isset($_SESSION['admin-login'])) {
	header("Location: ".site()."/".$param[0]."/menu");
} else {
	if (isset($_SESSION['status-logout'])) {
		echo "<p>".$_SESSION['status-logout']."</p>";
		unset($_SESSION['status-logout']);
	} else if (isset($_SESSION['status-login'])) {
		echo "<p>".$_SESSION['status-login']."</p>";
		unset($_SESSION['status-login']);
	}
	?>
	<form action="<?php echo site()."/".$param[0] ?>/login-action" method="post">
		<input type="text" name="username" autocomplete="off" />
		<input type="password" name="password" />	
		<input type="submit" name="login" value="Log In"/>
	</form>
	<?php
}
?>